//
//  YSAVPlayerManager.h
//  YSVideoPlayer
//
//  Created by Apple on 2020/7/19.
//  Copyright © 2020 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@interface KyleJAVPlayerManager : NSObject

/// 用于存储AVPlayer的数组
@property (nonatomic, strong) NSMutableArray <AVPlayer *> *playerArray;

+ (KyleJAVPlayerManager *)shareManager;

+ (void)setAudioMode;
- (void)play:(AVPlayer *)player;
- (void)pause:(AVPlayer *)player;
- (void)pauseAll;
- (void)replay:(AVPlayer *)player;
- (void)removeAllPlayers;

@end
